bool canWinNim(int n) {
    return (n & 3) != 0;
}
